//
//  HMMessageViewController.swift
//  Weibo
//
//  Created by 李学林 on 15/12/5.
//  Copyright © 2015年 tete. All rights reserved.
//

import UIKit

class HMMessageViewController: HMVisitorController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !userLogin {
            visitorView?.setVisitorInfo("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            return
        }
        
        setupUI()
    }

    private func setupUI(){
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发现群", target: self, action: "discoverGroup")
    }
    
    @objc private func discoverGroup(){
        printLog("discoverGroup")
        
        let vc = HMTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
   

}
